#include <stdio.h>
#include "base64.h"
int main()
{
    char dest[1024] = {0};
    int dest_len = 0;
    struct base64_context ctx;
    base64_init(&ctx, 0);
    base64_encode(&ctx, "123abcd", 7,dest,&dest_len);
    printf("%s\n",dest);

    char dec_buf[1024] = {0};
    int dec_len = 0;
    base64_decode(&ctx,dest,dest_len,dec_buf,&dec_len);
    printf("%s\n",dec_buf);
    return 0;
}
